<?php
namespace Wap\Controller;
use Wap\BaseController;
class CommonController extends BaseController {
    public function cutImage(){
        $type=I('get.type');
        $set=C("imgPosition.{$type}");
        $this->smarty->assign('imgType',$type);
        $this->smarty->assign('width',$set['width']);
        $this->smarty->assign('height',$set['height']);
        $this->smarty->display("cutImage.html");
    }

    public function resizeImage(){
        $type=I('get.type');
        $set=C("imgPosition.{$type}");
        $this->smarty->assign('imgType',$type);
        $this->smarty->assign('width',$set['width']);
        $this->smarty->assign('height',$set['height']);
        $this->smarty->display("resizeImage.html");
    }

}